package com.sgq.vue.dao.resource;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sgq.vue.entity.resource.WeatherApi;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @author: 83778
 * @date: 2023-12-26 0:39
 * @desc:
 */
@Mapper
public interface WeatherApiMapper extends BaseMapper<WeatherApi> {

    @Update("update resource_weather_api set state = #{state} where id = #{id}")
    Integer updateState(@Param("id") Long id, @Param("state")Integer state);


}
